<?php
class Form_Menu extends Zend_Form{
	public function init(){
		$this->setMethod('post');
		//cretae new element
		$id = $this->createElement('hidden', 'id');
		//element options
		$id->setDecorators(array('ViewHelper'));
		//add the element to the form
		$this->addElement($id);
		
		//create element
		$name = $this->createElement('text', 'name');
		///element options
		$name->setLabel('Name: ');
		$name->setRequired(TRUE);
		$name->setAttrib('size', 40);
		$name->addFilters('StripTags');
		
		$this->addElement($name);
		
		$submit = $this->addElement('submit','submit',array('label' => 'submit'));
	}
}
?>